package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Email;
import cn.wolfcode.crm.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmailMapper {
    int insert(Email entity);

    List<Email> selectAll();

    List<Email> queryLinkman(Long targetId);

    List<Employee> queryColleague();

    Email queryEmailMessage(@Param("sourceId") Long sourceId,@Param("id") Long id);

    void changState(@Param("sourceId")Long sourceId,@Param("id") Long id);

    void sendMessage(Email email);

    void deleteMessage(Email email);
}